package com.zjj.day2.test2;
/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/18
 */
public class GrandFather {
    private String name;
    private int age;

    public GrandFather(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void getGrandFather() {
        System.out.println("姓名：" + name + "，年龄：" + age);
    }
}    